package com.pattern.builder.improve;

/**
 * @author 冯志立
 * @create 2019-10-22 10:18
 * 抽象建造者 ---->builder
 */
public abstract class HouseBuilder {

    protected House house = new House();

    //将建造流程写好，抽象方法；
    //打地基
    public abstract void buildBasic();
    //砌墙
    public abstract void buildWalls();
    //封顶
    public abstract void roofed();


    //建造房子,将产品返回
    public House buildHouse(){
        return house;
    }
}
